package com.dljd.javase.t7;

public class SuperDemo {
    public static void main(String[] args) {
        A a=new B();
        a.show();

        System.out.println(a.age);
    }
}
class A {
int  age=111;
    public void show(){
        System.out.println("aaa");
    }
    private void method(){
        System.out.println("method");
    }
}
class B extends A{
 int age=222;
 String name="jack";
    public void show(){
        System.out.println("bbb");
    }

    public void test(){
        System.out.println("test");
    }
}
